package com.atguigu.yygh.model.hosp;

import com.atguigu.yygh.model.base.BaseMongoEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * Schedule
 * </p>
 *
 * @author qy
 */
@Data
@ApiModel(description = "StudentInfo")
@Document("StudentInfo")
public class StudentInfo extends BaseMongoEntity {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "宿舍编号")
	@Indexed //普通索引
	private String apartmentCode;

	@ApiModelProperty(value = "寝室编号")
	@Indexed //普通索引
	private String chamberCode;

	@ApiModelProperty(value = "职位")
	private String title;

	@ApiModelProperty(value = "学生名称")
	private String stuName;

	@ApiModelProperty(value = "联系方式")
	private String phone;

	@ApiModelProperty(value = "入学日期")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date workDate;

	@ApiModelProperty(value = "住宿缴费状态（0：未缴 1：已缴）")
	private Integer amountStatus;


	@ApiModelProperty(value = "住宿费")
	private BigDecimal amount;

	@ApiModelProperty(value = "学生状态（-1：停诊 0：退宿 1：在宿）")
	private Integer status;

	@ApiModelProperty(value = "床位号")
	@Indexed //普通索引
	private String bedId;

	@ApiModelProperty(value = "学号")
	@Indexed //普通索引
	private String stuCode;

}

